date=`date +%Y-%m-%d.%Hh_%Mm`
versionNumber="v0.0.1"
packageVersion="com/dm/cloud/auth/equip-auth-biz:${versionNumber}.${date}"
docker build -t ${packageVersion} .
sed -i /EQUIP_AUTH_VERSION/d ../.env
echo EQUIP_AUTH_VERSION="${versionNumber}.${date}" >> ../.env
cd ../
docker-compose  stop equip-auth-server
docker-compose  rm -f  equip-auth-server
docker-compose  up -d  equip-auth-server